package com.atguigu.srb.core.service;

import com.atguigu.srb.core.pojo.entity.Borrower;
import com.atguigu.srb.core.pojo.vo.BorrowerApprovalVO;
import com.atguigu.srb.core.pojo.vo.BorrowerDetailVO;
import com.atguigu.srb.core.pojo.vo.BorrowerVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 借款人 服务类
 * </p>
 *
 * @author Atguigu
 * @since 2022-10-24
 */
public interface BorrowerService extends IService<Borrower> {

    void saveBorrower(BorrowerVo borrowerVo, String token);

    Integer getStatus(String token);

    void listBorrowers(Page<Borrower> page, String key);

    BorrowerDetailVO selectBorrowerDetail(String id);

    void approval(BorrowerApprovalVO approvalVO);

    BigDecimal getBorrowerAmount(String token);
}
